/*
  Copyright (c) 2006-2009 by HAO jing <haojingus@gmail.com>
  This file is part of the SVG library. http://libsvg.googlecode.com

  This software is distributed under a license. The full license
  agreement can be found in the file LICENSE in this distribution.
  This software may not be copied, modified, sold or distributed
  other than expressed in the named license agreement.

  This software is distributed without any warranty.
*/

#ifndef SVGLINE_H__
#define SVGLINE_H__

#include "svgextension.h"
#include "svgtag.h"
#include "tag.h"
namespace gloox
{


class SVG_API SvgLine :
	public SvgExtension
{
public:
	SvgLine(Tag* tag);
	virtual ~SvgLine(void);
	virtual SvgExtension* newInstance(Tag* tag){return 0;};
	virtual Tag* tag() const;

	int getX1(){return m_x1;};
	int getY1(){return m_y1;};
	int getX2(){return m_x2;};
	int getY2(){return m_y2;};

	//CSS getCSS(){return m_css;};

	bool isValid();
	//virtual Tag* tag() const;
private:
	Tag* m_tag;
	int m_x1,m_y1,m_x2,m_y2;
	CSS m_css;
	bool m_isValid;
};

}
#endif